<!--
- @founder   IT柏拉图, https: //weibo.com/itprato
- @author    DedeCMS团队
- @copyright Copyright (c) 2007 - 2021, 上海卓卓网络科技有限公司 (DesDev, Inc.)
--->

<html>
<head>
<meta charset="{dede:global.cfg_soft_lang/}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>用户类型管理</title>
<meta name="copyright" content="2007-2021 DedeCMS, 上海卓卓网络科技有限公司 (DesDev, Inc.)" />
<link rel="icon" href="/favicon.ico" />
<!-- CSS FILES -->
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/pkg/uikit/css/uikit.min.css" />
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/css/manage.dede.css">
</head>
<body>
<!-- 列表头部 -->
<div id="Table_Header_202X2W2X1X292F" class="uk-card uk-card-small uk-card-default" uk-sticky="bottom: #offset">
<div id="Header_1W2T2S2T1V252B" class="uk-card-header">
<div class="uk-grid uk-grid-small uk-text-small">
<span><ul class="uk-breadcrumb"><li><span>用户类型管理</span></li></ul></span>
</div>
<!-- 搜索表单 -->
<ul class="uk-navbar-nav dede-card-navbar" uk-navbar >
<li style="margin-right: 12px;"><a href="member_rank.php" class="uk-button uk-button-default uk-button-small uk-flex-inline ">用户级别管理</a></li>
<li ><a href="member_operations.php" class="uk-button uk-button-default uk-button-small uk-flex-inline ">用户业务记录</a></li>
</ul>
<!-- /搜索表单 -->
</div>
<!-- 表头显示部分 -->
<table id="dede-table-toolbar" class="uk-table uk-table-middle uk-table-divider uk-table-striped uk-margin-remove">
<thead>
<tr>
<td width="22%">产品名称</td>
<td width="23%">用户级别</td>
<td width="21%">产品价格</td>
<td width="18%">用户期限(天)</td>
<td width="16%">状态</td>
</tr>
</thead>
</table>
<!-- /表头显示部分 -->
</div>
<!-- /列表头部 -->
<!-- 列表主体 -->
<div id="Table_Body_1X2V2U2V1W272D" class="uk-card uk-card-small uk-card-default" style="top: -51;">
<div class="uk-card-body uk-overflow-auto" grid>
<div class="uk-child-width-1-1">
<div class="uk-overflow-auto">
<!-- 表头隐藏部分，用于固定表结构宽度 -->
<form name="form1" action="member_type.php" method="post">
<input type="hidden" name="dopost" value="save" />
<table class="uk-table uk-table-hover uk-table-middle uk-table-divider uk-table-striped uk-margin-remove">
<thead>
<tr>
<td width="22%">产品名称</td>
<td width="23%">用户级别</td>
<td width="21%">产品价格</td>
<td width="18%">用户期限(天)</td>
<td width="16%">状态</td>
</tr>
</thead>
<!-- /表头隐藏部分 -->
<tbody>
<!-- 内容列表 -->
<?php
$dsql->SetQuery("Select * From #@__member_type");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
<input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->aid?>" />
<tr>
<td>
<input name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" type="text" id="pname_<?php echo $k?>" class="uk-input uk-form-small"/>
</td>
<td>
<select name='rank_<?php echo $k?>' id='rank_<?php echo $k?>' class="uk-select uk-form-small" />
<?php
foreach($arcranks as $kkk=>$vvv){
if($row->rank==$kkk) echo " <option value='{$kkk}' selected>{$vvv}</option>\r\n";
else echo " <option value='{$kkk}'>{$vvv}</option>\r\n";
}
?>
</select>
</td>
<td>
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon" uk-icon="icon: cash"></span>
<input name="money_<?php echo $k?>" value="<?php echo $row->money?>" type="text" id="money_<?php echo $k?>" class="uk-input uk-form-small"/>
</div></td>
<td>
<select name='exptime_<?php echo $k?>' id='exptime_<?php echo $k?>' class="uk-select uk-form-small">
<?php
foreach($times as $kkk=>$vvv){
if($row->exptime==$kkk) echo " <option value='{$kkk}' selected>{$vvv}</option>\r\n";
else echo " <option value='{$kkk}'>{$vvv}</option>\r\n";
}
?>
</select>
</td>
<td>
<input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" value="1" checked='1' class="uk-checkbox" />
保留
</td>
</tr>
<?php
}
?>
<input type="hidden" name="idend" value="<?php echo $k?>">
<tr>
<td colspan="5">&nbsp;<strong>新增一个用户产品类型：</strong></td>
</tr>
<tr>
<td>
<input name="pname_new" type="text" id="pname_new" class="uk-input uk-form-small"/>
</td>
<td>
<select name='rank_new' id='rank_new' class="uk-select uk-form-small">
<?php
foreach($arcranks as $kkk=>$vvv){
echo " <option value='{$kkk}'>{$vvv}</option>\r\n";
}
?>
</select>
</td>
<td>
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon" uk-icon="icon: cash"></span>
<input name="money_new" type="text" id="money_new" class="uk-input uk-form-small"/>
</div>
</td>
<td>
<select name='exptime_new' id='exptime_new' class="uk-select uk-form-small">
<?php
foreach($times as $kkk=>$vvv){
echo " <option value='{$kkk}'>{$vvv}</option>\r\n";
}
?>
</select>
</td>
<td>
<input name="check_new" type="checkbox" id="check_new" value="1" checked='1' class="uk-checkbox" />
新增
</td>
</tr>
<!-- /内容列表 -->
</tbody>
<!-- 分页 -->
<thead>
<tr>
<td colspan="5">
<button class="uk-button uk-button-default uk-button-small uk-button-primary">提交</button>
</td>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</from>
<!-- /列表主体 -->
<!-- 列表底部 -->
<div class="bar-bottom uk-flex uk-light uk-flex-right">
<div class="uk-button-group" style="margin-left: 50px;">
</div>
<div class="e1e02">Copyright &copy; 2007-2021 <a href='http://www.dedecms.com' target='_blank'><u>DedeCMS</u></a>, 上海卓卓网络科技有限公司 (DesDev, Inc.)</div>
</div>
<!-- 列表底部 -->
<!-- JS FILES -->
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit-icons.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/jquery/jquery.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/js/dede.manage.min.js"></script>
<!-- / JS FILES -->
</body>
</html>
